package com.zyz.I_多线程.匿名内部类;

/**
 * @author: vick
 * @Date: 2025/3/21
 * @Description:
 * @version: 1.0
 */
public class ThreadTest {
    public static void main(String[] args) {
        new Thread("子线程1") {
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    System.out.println(getName() + "：正在执行！" + i);
                }
            }
        }.start();
    }
}
